Fix use of uninitialized memory.
authorOwen Taylor <otaylor@redhat.com>
Wed, 28 Mar 2001 16:58:16 +0000 (16:58 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 28 Mar 2001 16:58:16 +0000 (16:58 +0000)
Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>

* gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
memory.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtksettings.c

index 7803e1a2f433e3468a8aa5cc872685622e01816d..3075f9b8d07092caec2c486718bd778f3c20d633 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
+       memory.
+
 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
index 7803e1a2f433e3468a8aa5cc872685622e01816d..3075f9b8d07092caec2c486718bd778f3c20d633 100644 (file)
@@ -1,3 +1,8 @@
+Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
+       memory.
+
 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
index 7803e1a2f433e3468a8aa5cc872685622e01816d..3075f9b8d07092caec2c486718bd778f3c20d633 100644 (file)
@@ -1,3 +1,8 @@
+Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
+       memory.
+
 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
index 7803e1a2f433e3468a8aa5cc872685622e01816d..3075f9b8d07092caec2c486718bd778f3c20d633 100644 (file)
@@ -1,3 +1,8 @@
+Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
+       memory.
+
 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
index 7803e1a2f433e3468a8aa5cc872685622e01816d..3075f9b8d07092caec2c486718bd778f3c20d633 100644 (file)
@@ -1,3 +1,8 @@
+Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
+       memory.
+
 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
index 7803e1a2f433e3468a8aa5cc872685622e01816d..3075f9b8d07092caec2c486718bd778f3c20d633 100644 (file)
@@ -1,3 +1,8 @@
+Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
+       memory.
+
 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
index 7803e1a2f433e3468a8aa5cc872685622e01816d..3075f9b8d07092caec2c486718bd778f3c20d633 100644 (file)
@@ -1,3 +1,8 @@
+Sun Mar 25 15:51:28 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
+       memory.
+
 Tue Mar 27 22:36:07 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from 
index 6fa5feab798a2c908eaed3d01b48d27678f679ff..2bfce3a933002fb5ffde204f3230549c04ec4074 100644 (file)
@@ -93,15 +93,13 @@ gtk_settings_init (GtkSettings *settings)
   guint i;
   
   g_datalist_init (&settings->queued_settings);
-  settings->property_values = NULL;
   object_list = g_slist_prepend (object_list, settings);
 
   /* build up property array for all yet existing properties and queue
    * notification for them (at least notification for internal properties
    * will instantly be caught)
    */
-  settings->property_values = g_renew (GValue, settings->property_values, class_n_properties);
-  settings->property_values[class_n_properties - 1].g_type = 0;
+  settings->property_values = g_new0 (GValue, class_n_properties);
   for (i = 0; i < class_n_properties; i++)
     {
       GParamSpec *pspec = gobject_class->property_specs[i]; // FIXME: g_object_list_properties(this_class_type)